<template>
	<view>
		<view class="swiper">
			<u-swiper radius="1" height="455" :list="list1" @click="click" @change="change"></u-swiper>
			<image @click="fanhui" :style="{ top: safeTop }" class="fanhui-img" src="../../static/index/fanhui.png" mode=""></image>
			
			<view class="aerial-view">
				<image @click="current = index" v-for="(i,index) in list1" :src="i" mode="aspectFill"></image>
			</view>
		</view>
		
		<view class="box">
			<view class="assistant-info">
				<view style="display: flex;align-items: center;">
					<view class="assistant-img">
						<image src="../../static/img-6.png" mode="aspectFill"></image>
					</view>
					<view class="assistant-brief">
						<view class="name">李擎洲</view>
						<view class="brief-box">
							<text class="text1"> <image class="sex-img" src="../../static/index/girl.png" mode=""></image> 19 </text>
							<text class="brief">白领 <text class="wire"></text> 167cm <text class="wire"></text> 11361km</text>
						</view>
					</view>
				</view>
				<view class="concern-btn">
					关注
				</view>
			</view>
			
			<view class="attention-sum">
				<view class="">
					<text>0</text>
					关注
				</view>
				<view class="">
					<text>10</text>
					粉丝
				</view>
				<view>
					<text style="color: #FF7B18;">0</text>
					关注
				</view>
			</view>
			
			<!-- 简介 -->
			<view class="resume">
				活泼开朗、幽默风趣、业余陪练
			</view>
			
			<!-- 标签 -->
			<view class="tabs-box">
				<text>个性标签</text>
				<text>个性标签</text>
			</view>
			<u-divider :text="false"></u-divider>
			
			<view class="title">服务项目</view>
			
			<view class="tabs">
				<text>台球</text>
				<text>下棋</text>
			</view>
		</view>
		
		<view style="height: 180rpx;width: 1rpx;"></view>
		<view class="btn-box">
			<view class="btn-lr">
				<view class="item-btn" @click="toTAitem">她的服务项目</view>
				<view class="subscribe-btn" @click="toAssistant">预约</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				safeTop: uni.getStorageSync('safeTop') || 20 + 'px',
				list1: ['https://cdn.uviewui.com/uview/swiper/swiper1.png','../../static/img-6.png','../../static/index/table-item5.png','../../static/index/table-item4.png'],
				current:'',//当前轮播图索引
			}
		},
		methods: {
			toAssistant(){
				uni.navigateTo({
					url:'/pages/assistantBooking/assistantBooking'
				})
			},
			toTAitem(){
				uni.navigateTo({
					url:'/pages/TAitemList/TAitemList'
				})
			},
			change(e){
				console.log(e)
				this.current = e.current
			},
			fanhui(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.swiper {
		width: 750rpx;
		height: 910rpx;
		position: relative;
		
		.fanhui-img {
			width: 48rpx;
			height: 48rpx;
			position: absolute;
			padding-left: 32rpx;
			z-index: 999;
		}
		.aerial-view {
			position: absolute;
			right: 32rpx;
			bottom: 150rpx;
			image {
				width: 72rpx;
				height: 72rpx;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				border: 2rpx solid rgba(255,255,255,0.5);
				margin-left: 16rpx;
			}
		}
	}
	.box {
		width: 686rpx;
		// height: 790rpx;
		background: #FFFFFF;
		border-radius: 40rpx 40rpx 0rpx 0rpx;
		position: relative;
		top: -60rpx;
		z-index: 9;
		padding: 45rpx 32rpx 0 32rpx;
		
		.assistant-info {
			display: flex;
			align-items: center;
			justify-content: space-between;
			.assistant-img {
				width: 100rpx;
				height: 100rpx;
				background: #D9D9D9;
				border-radius: 50%;
				image {
					width: 100rpx;
					height: 100rpx;
					border-radius: 50%;
				}
			}
		}
		.assistant-brief {
			margin-left: 32rpx;
			.name {
				font-weight: bold;
				font-size: 30rpx;
				color: #1C274C;
			}
			.brief-box {
				.text1 {
					// width: 60rpx;
					display: inline-block;
					margin-left: 8rpx;
					height: 28rpx;
					line-height: 28rpx;
					background: #FF648F;
					border-radius: 14rpx 14rpx 14rpx 14rpx;
					padding: 0 8rpx;
					font-weight: 500;
					font-size: 20rpx;
					color: #FFFFFF;
					.sex-img {
						width: 18rpx;
						height: 18rpx;
						vertical-align: middle;
					}
					margin-right: 16rpx;
				}
				.text2 {
					background-color: #3E9AF4;
				}
				.brief {
					font-weight: 500;
					font-size: 22rpx;
					color: #A4A9B7;
					margin-top: 8rpx;
					.wire {
						display: inline-block;
						margin: 0 16rpx;
						width: 2rpx;
						height: 17rpx;
						background-color: #EDEEF1;
					}
				}
			}
		}
		.concern-btn {
			width: 113rpx;
			height: 56rpx;
			background: #4BC264;
			border-radius: 10rpx 10rpx 10rpx 10rpx;
			text-align: center;
			line-height: 56rpx;
			font-weight: 500;
			font-size: 26rpx;
			color: #FFFFFF;
		}
		
		
		.attention-sum {
			display: flex;
			margin-top: 32rpx;
			view {
				font-size: 28rpx;
				color: #A4A9B7;
				margin-right: 64rpx;
				text {
					font-weight: bold;
					font-size: 28rpx;
					color: #1C274C;
					padding-right: 10rpx;
				}
			}
		}
		// 简介
		.resume {
			font-weight: 500;
			font-size: 28rpx;
			color: #6B738B;
			line-height: 33rpx;
			margin-top: 32rpx;
		}
		// 标签
		.tabs-box {
			margin-top: 24rpx;
			text {
				display: inline-block;
				height: 48rpx;
				background: #F6F8FC;
				border-radius: 6rpx 6rpx 6rpx 6rpx;
				font-weight: 500;
				font-size: 24rpx;
				color: #6B738B;
				line-height: 48rpx;
				padding: 0 16rpx;
				margin-right: 16rpx;
			}
		}
		
		.title {
			font-weight: bold;
			font-size: 30rpx;
			color: #1C274C;
			margin-top: 32rpx;
		}
		
		.tabs {
			margin-top: 16rpx;
			text {
				display: inline-block;
				height: 36rpx;
				line-height: 36rpx;
				padding: 0 16rpx;
				background: #EDF9F0;
				border-radius: 6rpx 6rpx 6rpx 6rpx;
				font-weight: 500;
				font-size: 20rpx;
				color: #4BC264;
				margin-right: 18rpx;
			}
		}
	}
	
	
	.btn-box {
		width: 100%;
		position: fixed;
		bottom: 40rpx;
		z-index: 9;
		
		.btn-lr {
			width: 686rpx;
			margin: auto;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.item-btn {
				width: 428rpx;
				height: 106rpx;
				background: #4BC264;
				border-radius: 20rpx 20rpx 20rpx 20rpx;
				font-weight: 800;
				font-size: 34rpx;
				color: #FFFFFF;
				line-height: 106rpx;
				text-align: center;
			}
			.subscribe-btn {
				width: 234rpx;
				height: 106rpx;
				background: #3E9AF4;
				border-radius: 20rpx 20rpx 20rpx 20rpx;
				font-weight: 800;
				font-size: 34rpx;
				color: #FFFFFF;
				line-height: 106rpx;
				text-align: center;
			}
		}
	}
</style>
